#pragma once
#include "stdafx.h"
#include <string>
#include <vector>
#include <tuple>
#include <sstream>
#include <iostream>
#include <xercesc/dom/DOM.hpp>
#include <xercesc/util/XMLString.hpp>
#include <xercesc/util/PlatformUtils.hpp>
#include <xercesc/parsers/XercesDOMParser.hpp>
#include <xercesc/dom/DOM.hpp>
#include <xercesc/util/XMLString.hpp>
#include <xercesc/sax/HandlerBase.hpp>
#include <xercesc/framework/StdOutFormatTarget.hpp>
#include <xercesc/framework/LocalFileFormatTarget.hpp>

#if _DEBUG
# pragma comment (lib, "xerces-c_3D.lib")
#else
# pragma comment (lib, "xerces-c_3.lib")
#endif

namespace xercescHelpingLibrary
{
	using namespace xercesc;

	static bool xhlInitialize() 
	{
		try {
			XMLPlatformUtils::Initialize();
			return true;
		}
		catch (const XMLException&) {
			return false;
		}
	}

	static void xhlTerminate()
	{
		XMLPlatformUtils::Terminate();
	}
}

